package com.cola.demo1.service.ipml;

import com.cola.demo1.dao.UserDao;
import com.cola.demo1.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Grup:com.cola.demo.service
 * @Auther:cola
 * @Data:2021/4/18-2021-04-13:02
 * @version:1.0
 */
//@Component
@Service//代替Component,没有区别,语义更明确
public class UserServiceNormal implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public void add() {
        userDao.add();
    }
}
